def test_get_value_missingallinputs(self): """ :return: NA Missing all inputs """ with self.assertRaises(TypeError): utils.get_value()
def test_get_value_missingoneinput(self): """ :return: NA Missing one input """ with self.assertRaises(TypeError): utils.get_value(self.y)
def test_get_value_randomstringsinput(self): """ :return: NA Search for a random string """ self.assertEqual(utils.get_value('asdlk;jasdjasdljasdljasd','125nj15knjhpo1n5+++++'), 'None')
def test_get_value_yd(self): """ :return: NA Search for the corresponding value of d in y """ self.assertEqual(utils.get_value(self.y, 'd'), 2)
def test_get_value_yb(self): """ :return: NA Search for the corresponding value of b in y """ self.assertEqual(utils.get_value(self.y, 'b'), 'None')
def test_get_value_xb(self): """ :return: NA Search for the corresponding value of b in x """ self.assertEqual(utils.get_value(self.x, 'b'), 52)
def test_get_value_xq(self): """ :return: NA Search for the corresponding value of q in x """ self.assertEqual(utils.get_value(self.x, 'q'), 'None')