'Tests whether or not the different kinds of actions an episode can have are returned correctly'

def test_get_actions(self):

    test_cases = {None: [], u'': [], u'wrong': [], u'downloaded': Quality.DOWNLOADED, u'Downloaded': Quality.DOWNLOADED, u'snatched': Quality.SNATCHED, u'Snatched': Quality.SNATCHED}
    unicode_test_cases = {u'': [], u'wrong': [], u'downloaded': Quality.DOWNLOADED, u'Downloaded': Quality.DOWNLOADED, u'snatched': Quality.SNATCHED, u'Snatched': Quality.SNATCHED}
    for tests in (test_cases, unicode_test_cases):
        for (action, result) in six.iteritems(tests):
            self.assertEqual(History._get_actions(action), result)
