<<<<<<< HEAD
import unittest

def average(seq):
    return sum(seq) / len(seq)

class TestAverage(unittest.TestCase):
    def test_zero(self):
        self.assertRaises(ZeroDivisionError, average, [])
    """
    The context manager allows us to write the code the way we would normally write
    it (by calling functions or executing code directly), rather than having to wrap the
    function call in another function call.
    """
    def test_with_zero(self):
        with self.assertRaises(ZeroDivisionError):
            average([])

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


=======
import unittest

def average(seq):
    return sum(seq) / len(seq)

class TestAverage(unittest.TestCase):
    def test_zero(self):
        self.assertRaises(ZeroDivisionError, average, [])
    """
    The context manager allows us to write the code the way we would normally write
    it (by calling functions or executing code directly), rather than having to wrap the
    function call in another function call.
    """
    def test_with_zero(self):
        with self.assertRaises(ZeroDivisionError):
            average([])

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


>>>>>>> b829bcb465b0e32104dbe492037b6da0f67e9948

02d8a9c2cd5ba2a5715a51db6dd3b0a924018b8a
<<<<<<< HEAD
import unittest

def average(seq):
    return sum(seq) / len(seq)

class TestAverage(unittest.TestCase):
    def test_zero(self):
        self.assertRaises(ZeroDivisionError, average, [])
    """
    The context manager allows us to write the code the way we would normally write
    it (by calling functions or executing code directly), rather than having to wrap the
    function call in another function call.
    """
    def test_with_zero(self):
        with self.assertRaises(ZeroDivisionError):
            average([])

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


=======
import unittest

def average(seq):
    return sum(seq) / len(seq)

class TestAverage(unittest.TestCase):
    def test_zero(self):
        self.assertRaises(ZeroDivisionError, average, [])
    """
    The context manager allows us to write the code the way we would normally write
    it (by calling functions or executing code directly), rather than having to wrap the
    function call in another function call.
    """
    def test_with_zero(self):
        with self.assertRaises(ZeroDivisionError):
            average([])

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


>>>>>>> b829bcb465b0e32104dbe492037b6da0f67e9948
