import unittest
from managrams import *

class managramsTest(unittest.TestCase):

    def test_anagrams(self):
        list0 = [1, "c", 3, 4, 2, 6, "238", 238, "sick liaisons"]
        list1 = [1, 3, "c", 2, 4, 6, "238", "sick liaisons", 238]
        self.assertEqual(True, anagrams(list0, list1))

    def test_anagrams1(self):
        list0 = [1, "c", 3, 4, 2, 6, 238, 238, "sick liaisons"]
        list1 = [1, 3, "c", 2, 4, 6, "238", "sick liaisons", 238]
        self.assertEqual(False, anagrams(list0, list1))

    def test_anagrams2(self):
        list0 = [1, "c", 3, 4, 2, 6, 238, "sick liaisons"]
        list1 = [1, 3, "c", 2, 4, 6, "238", "sick liaisons", 238]
        self.assertEqual(False, anagrams(list0, list1))

    def test_fizzBuzz(self):
        toParse = [1, 2, 3, 4, 5, 6, 7, 8, 9, 12]
        self.assertEqual([1, 2, "fizz", "buzz", 5, "fizz", 7, "buzz", "fizz", "fizz buzz"], fizzBuzz(toParse))

    def test_oddOrEven(self):
        self.assertEqual("even", oddOrEven(2))

    def test_oddOrEven1(self):
        self.assertEqual("odd", oddOrEven(3))

    def test_oddOrEven2(self):
        self.assertEqual("not applicable", oddOrEven(0))

    def test_oddOrEven3(self):
        self.assertEqual("not an inputNumber", oddOrEven(3.14))

    def test_oddOrEven4(self):
        self.assertEqual("not an inputNumber", oddOrEven("three"))

    def test_spicyChange1(self):
        inputCash = 10
        self.assertEqual(1, spicyChange(inputCash))
