Example #1
0
 def test_set_item(self):
     """
     Check the DataStore base class has a set_item method.
     """
     self.assertTrue(hasattr(DataStore, 'set_item'))
     ds = DataStore()
     self.assertEqual(NotImplemented, ds.set_item(123, 'value'))
Example #2
0
 def test_original_publish_time(self):
     """
     Check the DataStore base class has an original_publish_time method.
     """
     self.assertTrue(hasattr(DataStore, 'original_publish_time'))
     ds = DataStore()
     self.assertEqual(NotImplemented, ds.original_publish_time(123))
Example #3
0
 def test_keys(self):
     """
     Check the DataStore base class has a keys method.
     """
     self.assertTrue(hasattr(DataStore, 'keys'))
     ds = DataStore()
     self.assertEqual(NotImplemented, ds.keys())
Example #4
0
 def test_last_published(self):
     """
     Check the DataStore base class has a last_published method.
     """
     self.assertTrue(hasattr(DataStore, 'last_published'))
     ds = DataStore()
     self.assertEqual(NotImplemented, ds.last_published(123))
Example #5
0
 def test_last_updated(self):
     """
     Check the DataStore base class has a last_updated method.
     """
     self.assertTrue(hasattr(DataStore, "last_updated"))
     ds = DataStore()
     self.assertEqual(NotImplemented, ds.last_updated("foo"))