Esempio n. 1
0
 def save_updates_space(self):
     space = Space(self.conn, 'some name').save()
     self.assertEqual(space.name, 'some name')
     space.name = 'new name'
     space.save()
     self.assertEqual(self.conn.find_space('new_name').name, 'new name')
Esempio n. 2
0
 def save_updates_space(self):
     space = Space(self.conn, 'some name').save()
     self.assertEqual(space.name, 'some name')
     space.name = 'new name'
     space.save()
     self.assertEqual(self.conn.find_space('new_name').name, 'new name')
Esempio n. 3
0
 def test_save_creates_space(self):
     space = Space(self.conn, 'not saved')
     self.assertFalse(space.persisted())
     resp = space.save()
     self.assertIsInstance(resp, Space)
     self.assertTrue(space.persisted())
Esempio n. 4
0
 def test_save_creates_space(self):
     space = Space(self.conn, 'not saved')
     self.assertFalse(space.persisted())
     resp = space.save()
     self.assertIsInstance(resp, Space)
     self.assertTrue(space.persisted())