Created
March 11, 2016 13:58
-
-
Save wolendranh/c1b6ff86d48271989eac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unittest import TestCase | |
class ListCheckTestCase(TestCase): | |
def setUp(self): | |
self.bad_lst = ['itsppyura', 'itsppoleg', 'dev'] | |
self.right_lst = ['itsppyura', 'itsppoleg'] | |
def test_contain_string_pass(self): | |
for item in self.right_lst: | |
self.assertTrue(item.startswith('itspp')) | |
def test_contain_string_fail(self): | |
for item in self.bad_lst: | |
self.assertTrue(item.startswith('itspp')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment