Exemple #1
0
 def testNames(self):
     names = languages.get_names()
     
     self.assertTrue('Python' in names)
     self.assertTrue('JavaScript' in names)
     
     self.assertFalse('python' in names)
     self.assertFalse('javascript' in names)
Exemple #2
0
 def testNamesSort(self):
     names = languages.get_names()
     self.assertEquals(names, sorted(names))