def add_with_one_uri_check_with_id_and_no_alerts(self, aid = 1, url='google.com'):
     uri_check = UriCheck()
     uri_check.check_id = aid
     uri_check.check_options = ''
     uri_check.url = url
     self.cur_session.add(uri_check)
     self.cur_session.flush()
    def test_has_changes_hashTheSame_NoChange(self):
        uri_check = UriCheck()
        uri_check.check_options = HashCheckTests.md_hash_page

        check = HashCheck(uri_check) 
        url_reader_fake = FakeUrlReader('page')

        self.assertFalse(check.has_changes(url_reader_fake))