Example #1
0
 def test_save_persists_label(self):
     chart = Chart(self.conn, space_id=self.space.id)
     self.assertIsNone(chart.label)
     chart.label = 'my label'
     chart.save()
     found = self.conn.get_chart(chart.id, self.space.id)
     self.assertEqual(found.label, 'my label')
Example #2
0
 def test_save_persists_label(self):
     chart = Chart(self.conn, space_id=self.space.id)
     self.assertIsNone(chart.label)
     chart.label = 'my label'
     chart.save()
     found = self.conn.get_chart(chart.id, self.space.id)
     self.assertEqual(found.label, 'my label')