import unittest

from translator import french_to_english, english_to_french

class TestFrenchToEnglish(unittest.TestCase):
    def test1(self):
        self.assertEqual(french_to_english("Bonjour"), "Hello")   # test when "Bonjour" is given as input the output is "Hello".
        
        with self.assertRaises(ValueError):                       # test when None/null is given as input a ValueError is returned.
            french_to_english(None)

class TestEnglishToFrench(unittest.TestCase):
    def test1(self):
        self.assertEqual(english_to_french("Hello"), "Bonjour")   # test when "Hello" is given as input the output is "Bonjour".
        
        with self.assertRaises(ValueError):                       # test when None/null is given as input a ValueError is returned.
            english_to_french(None)

unittest.main()

import unittest

from translator import french_to_english, english_to_french

class TestFrenchToEnglish(unittest.TestCase):
    def test1(self):
        self.assertEqual(french_to_english("Bonjour"), "Hello")   # test when "Bonjour" is given as input the output is "Hello".
        
        with self.assertRaises(ValueError):                       # test when None/null is given as input a ValueError is returned.
            french_to_english(None)

class TestEnglishToFrench(unittest.TestCase):
    def test1(self):
        self.assertEqual(english_to_french("Hello"), "Bonjour")   # test when "Hello" is given as input the output is "Bonjour".
        
        with self.assertRaises(ValueError):                       # test when None/null is given as input a ValueError is returned.
            english_to_french(None)

unittest.main()

# test when "Bonjour" is given as input the output is "Hello". # test when None/null is given as input a ValueError is returned. # test when "Hello" is given as input the output is "Bonjour". # test when None/null is given as input a ValueError is returned.