import unittest
from anna_torok_work import anagramm, count_letters

class TestTwoAnagrams(unittest.TestCase):

    def test_two_string_anagrams_true(self):
        self.assertTrue(anagramm('mary', 'yram'))

    def test_two_string_anagrams_false(self):
        self.assertFalse(anagramm('albert', 'rokalb'))

    def test_number_and_string_anagrams_false(self):
        self.assertFalse(anagramm('10001', 'amadeus'))

    def test_number_and_number_anagrams_false(self):
        self.assertTrue(anagramm('10001', '00101'))

    def test_two_string_with_uppercase_anagrams_True(self):
        self.assertTrue(anagramm('Kalman', 'mankal'))

    def test_empty_strings_anagrams_true(self):
        self.assertTrue(anagramm('', ''))

    def test_two_strings_with_hypen_nagrams_true(self):
        self.assertTrue(anagramm('al-ma', '-lama'))

    def test_two_strings_with_space_anagrams_true(self):
        self.assertTrue(anagramm(' lomha', 'ha lom'))

    def test_count_letters(self):
        self.assertEqual(count_letters('almafa'), count_letters('lamaaf'))

    def test_count_with_hypen_letters(self):
        self.assertEqual(count_letters('lomha-macska'), count_letters('-scakmahomal'))

    def test_count__with_not_letters(self):
        self.assertNotEqual(count_letters('lomham1acska'), count_letters('scakmahomal3d'))

    def test_count__with_uppercase_letters(self):
        self.assertEqual(count_letters('lomhaMacska'), count_letters('scAkmahomal'))

    def test_count__empty_letters(self):
        self.assertEqual(count_letters(''), {})


if __name__  == '__main__':
     unittest.main()
