예제 #1
0
 def test_basic(self):
     sot = version.Version()
     self.assertEqual('version', sot.resource_key)
     self.assertEqual('versions', sot.resources_key)
     self.assertEqual('/', sot.base_path)
     self.assertFalse(sot.allow_create)
     self.assertFalse(sot.allow_fetch)
     self.assertFalse(sot.allow_commit)
     self.assertFalse(sot.allow_delete)
     self.assertTrue(sot.allow_list)
예제 #2
0
 def test_basic(self):
     sot = version.Version()
     self.assertEqual('version', sot.resource_key)
     self.assertEqual('versions', sot.resources_key)
     self.assertEqual('/', sot.base_path)
     self.assertEqual('network', sot.service.service_type)
     self.assertFalse(sot.allow_create)
     self.assertFalse(sot.allow_retrieve)
     self.assertFalse(sot.allow_update)
     self.assertFalse(sot.allow_delete)
     self.assertTrue(sot.allow_list)
예제 #3
0
 def test_make_it(self):
     sot = version.Version(**EXAMPLE)
     self.assertEqual(EXAMPLE['id'], sot.id)
     self.assertEqual(EXAMPLE['links'], sot.links)
     self.assertEqual(EXAMPLE['status'], sot.status)