Exemplo n.º 1
0
    def test_getStandardData_givenData_expectGivenInputData(
            self):
        data = [1, 2, 3, 4]
        dataCollection = DataCollection()
        dataCollection.setStandardData(data)

        self.assertEqual(dataCollection.getStandardData(), data)
Exemplo n.º 2
0
    def test_init_givenNoStandardData_expectNoException(self):
        dataCollection = DataCollection()

        self.assertIsInstance(dataCollection, DataCollection)
        self.assertEqual(dataCollection.getStandardDataName(), "data")
        self.assertEqual(dataCollection.getStandardData(), None)
Exemplo n.º 3
0
    def test_init_givenStandardData_expectNoException(self):
        data = [1, 2, 3, 4]
        dataCollection = DataCollection(data)

        self.assertIsInstance(dataCollection, DataCollection)
        self.assertEqual(dataCollection.getStandardData(), data)