Пример #1
0
    def test_sends_pdb_file_when_given(self):
        pdb_file = mock.Mock(spec_set=File)

        self.start_decompilation_with_any_input_file(pdb_file=pdb_file)

        self.assert_post_request_was_sent_with(files=AnyFilesWith(
            pdb=AnyFileNamed(pdb_file.name)))
Пример #2
0
    def test_sends_input_file(self):
        self.fileinfo.start_analysis(input_file=self.input_file)

        self.assert_post_request_was_sent_with(
            files=AnyFilesWith(input=AnyFileNamed(self.input_file.name))
        )
Пример #3
0
    def test_sends_input_file(self):
        self.start_decompilation(input_file=self.input_file)

        self.assert_post_request_was_sent_with(
            files=AnyFilesWith(input=AnyFileNamed(self.input_file.name))
        )