import unittest
from . import dictionary_of_metrics, five_num_summary

class Tests(unittest.TestCase):

    def test_dictionary_of_metrics(self):
        self.assertEqual(dictionary_of_metrics([1, 2, 3, 4, 5, 6]), {'mean': 3.5,
        'median': 3.5,
        'variance': 3.5,
        'standard deviation': 1.87,
        'min': 1.0,
        'max': 6.0})

    def test_five_num_summary(self):
        self.assertEqual(five_num_summary([1, 2, 3, 4, 5, 6]), {'max': 6.0, 'median': 3.5, 'min': 1.0, 'q1': 2.0, 'q3': 5.0})
