def test_getStandardDataName_givenDefaultName_expectDefaultName( self): dataCollection = DataCollection() self.assertEqual(dataCollection.getStandardDataName(), "data")
def test_getStandardDataName_givenValidName_expectGivenName( self): dataCollection = DataCollection() dataCollection.setStandardDataName("testName") self.assertEqual(dataCollection.getStandardDataName(), "testName")
def test_init_givenNoStandardData_expectNoException(self): dataCollection = DataCollection() self.assertIsInstance(dataCollection, DataCollection) self.assertEqual(dataCollection.getStandardDataName(), "data") self.assertEqual(dataCollection.getStandardData(), None)