示例#1
0
def test_smile():
    from awesome import smile
    assert smile() == ':)'
示例#2
0
 def test_add(self):
     self.assertEqual(awesome.smile(), ":)")
     self.assertEqual(awesome.frown(), ":(")
     self.assertEqual(awesome.some_other_func(), ":/")
     self.assertEqual(awesome.yet_other_func(), ":/")
示例#3
0
 def test_add(self):
     # call to function changing some "global" data structure
     # assert function is checking that the change you expected happens properly.
     self.assertEqual(awesome.smile(), ":)")
示例#4
0
 def test_transformation(self):
     # call to function changing some "global" data structure
     # assert function is checking that the change you expected happens properly.
     result = transformFoo()
     self.assertEqual("foo", result)
     self.assertEqual(awesome.smile(), ":)")
def test_add():
    assert awesome.smile() == ":)"
示例#6
0
 def test_add(self):
     self.assertEqual(awesome.smile(), ":)")