class TestStringSinglePattern():
    def setup(self):
        self.a = StringSinglePattern("adaddafkaksaf","ks")

    def test_brute_force(self):
        assert 9 == self.a.brute_force()

    def test_kmp(self):
        assert 9 == self.a.kmp()

    def test_bm(self):
        assert 9 == self.a.bm()

    def test_sunday(self):
        assert 9 == self.a.sunday()
 def setup(self):
     self.a = StringSinglePattern("adaddafkaksaf","ks")