def test_modeOnList_One(self): items = ['a', 'b', 'a', 'd'] res = BlocklyMethods.modeOnList(items) self.assertEqual(['a'], res)
def test_modeOnList_all(self): items = ['a', 'b', 'c', 'd'] res = BlocklyMethods.modeOnList(items) self.assertEqual(items, res)