def assertLoaded(self, contents, expected): self.assertEqual(expected, Properties.load(contents))
def load(path): """Loads a pushdb maintained in a properties file at the given path.""" with open(path, 'r') as props: properties = Properties.load(props) return PushDb(properties)