Ejemplo n.º 1
0
    def test_getStandardDataName_givenDefaultName_expectDefaultName(
            self):
        dataCollection = DataCollection()

        self.assertEqual(dataCollection.getStandardDataName(), "data")
Ejemplo n.º 2
0
    def test_getStandardDataName_givenValidName_expectGivenName(
            self):
        dataCollection = DataCollection()
        dataCollection.setStandardDataName("testName")

        self.assertEqual(dataCollection.getStandardDataName(), "testName")
Ejemplo n.º 3
0
    def test_init_givenNoStandardData_expectNoException(self):
        dataCollection = DataCollection()

        self.assertIsInstance(dataCollection, DataCollection)
        self.assertEqual(dataCollection.getStandardDataName(), "data")
        self.assertEqual(dataCollection.getStandardData(), None)