Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/n/u/nuxeo-otg-HEAD/tests/test_storage.py   nuxeo-otg(Download)
 
        # create a new state by looking for an unknown path
        s = storage.get_state(b, 'some_file.txt')
        self.assertEquals(s.local_state, 'unknown')
        s.set_state('local', 'created')
        storage = Storage(self.storage_folder)
        self.assertEquals(1, len(storage.get_states(b)))
        s = storage.get_state(b, 'some_file.txt')
        self.assertEquals(s.local_state, 'created')