how to writing unit tests for exception and raise? For example I have
someFoo.py
class MyExc(Exception):
"""
my exc
"""
pass
def foo(a,b,c):
raise MyExc
def foo1(a,b):
assert a==b, 'a==b!!'
tests.py
from someFoo import foo,foo1
import unittest
class Test(unittest.TestCase):
pass
and I can't find good solution for this