def test_store_attributes_test01(self): store = MemoryStore() store.update(self.test01) assert (ATTRS['domain'] in store.attributes()) assert (ATTRS['role'] in store.attributes()) assert (ATTRS['collection'] not in store.attributes()) assert ('example.com' in store.attribute(ATTRS['domain'])) assert ('example.net' in store.attribute(ATTRS['domain'])) assert ('foo.com' not in store.attribute(ATTRS['domain']))
def test_create_store(self): store = MemoryStore() assert (store is not None) assert (store.size() == 0) assert (len(store.collections()) == 0) assert (str(store)) assert (not store.attributes())