Exemple #1
0
 def test_003_NoSuchKey(self):
     """ transValueToKeyTest_003_NoSuchKey: Tests the case NoSuchKey where the Key input does not exist in the graph"""
     self.assertEqual(xayacore.transValueToKey(self.graph_transValueToKey,'NoKey4'),{})
Exemple #2
0
 def test_004_NoInputParams(self):
     """ transValueToKeyTest_004_NoInputParams: Tests the case NoInputParams where No Input Parameters given"""
     self.assertEqual(xayacore.transValueToKey(),{})
Exemple #3
0
 def test_001_NormalCase(self):
     """ transValueToKeyTest_001_NormalCase: Tests NormalCase where Graph and Key input leads to output of Indexed Graph of  values for that Key"""
     normaldata = xayacore.transValueToKey(self.graph_transValueToKey,'Key4').keys()
     normaldata.sort()
     self.assertEqual(normaldata,['Key4V1','Key4V2'])