def test_getStandardDataName_givenValidName_expectGivenName( self): dataCollection = DataCollection() dataCollection.setStandardDataName("testName") self.assertEqual(dataCollection.getStandardDataName(), "testName")
def test_setStandardDataName_givenEmptyName_expectException( self): dataCollection = DataCollection() self.assertRaises( RuntimeError, lambda: dataCollection.setStandardDataName(""))