Check that the config router writes correctly to the filesystem
(self)
| 52 | self.assertEqual(4, router.get("b")) |
| 53 | |
| 54 | def test_write(self): |
| 55 | """ |
| 56 | Check that the config router writes correctly to the filesystem |
| 57 | """ |
| 58 | router = ConfigRouter([self.path1, self.path2]) |
| 59 | router.set("a", 3) |
| 60 | router.set("b", 4) |
| 61 | router.write() |
| 62 | |
| 63 | self.conf1.load() |
| 64 | self.conf2.load() |
| 65 | |
| 66 | self.assertEqual(self.conf1.get("a"), 3) |
| 67 | self.assertEqual(self.conf1.get("b"), None) |
| 68 | self.assertEqual(self.conf2.get("b"), 4) |
| 69 | self.assertEqual(self.conf2.get("a"), None) |
| 70 | |
| 71 | def test_collision(self): |
| 72 | """ |
nothing calls this directly
no test coverage detected