Exemplo n.º 1
0
 def test_prefixes(self):
     timekeeper.ACTIVITIES = ["testing a", "testing b", "programming a", "programming b", "other"]
     self.assertEqual(["programming", "testing"], sorted(list(timekeeper.prefixes())))
Exemplo n.º 2
0
 def test_prefixes_empty(self):
     timekeeper.ACTIVITIES = ["testing", "programming", "other"]
     self.assertEqual(set(), timekeeper.prefixes())
Exemplo n.º 3
0
 def test_prefixes_default(self):
     self.assertEqual({"testing"}, timekeeper.prefixes())