Exemplo n.º 1
0
    def test_convertJsonToList2(self):
        '''convertJsonToList should create a list, if a different jsonkey is given'''

        result = utils.convertJsonToList(self, self.sampleJsonString, "Type")
        self.assertEqual(self.sampleJsonAsList2, result)
Exemplo n.º 2
0
    def test_convertJsonToList1(self):
        '''convertJsonToList should create a list, if a proper json is given'''

        result = utils.convertJsonToList(self, self.sampleJsonString)
        self.assertEqual(self.sampleJsonAsList1, result)