def test_lone_hat():
 sol = re.compile('^')
 AreEqual(sol.match('bazbar', 1, 2), None)
 AreEqual(sol.match('foobar', 1, 2), None)

def test_lone_hat ( ) : sol = re . compile ( '^' ) AreEqual ( sol . match ( 'bazbar' , 1 , 2 ) , None ) AreEqual ( sol . match ( 'foobar' , 1 , 2 ) , None )
single ^ reg-ex shouldnt match w/ a sub-set of a string .