def test_pcap_compile_fs(self, mock_pcap_path, mock_check_pcap_path):
        """Ensure we can call the pcap/compile_fs endpoint."""
        post_args = {
            "code": "flow default tcp 192.168.51.44:45348 > 172.16.146.20:45694 (tcp.initialize;);"
            'default > (content:""; content:"\x0d\x0aContent-Length: 12"; content:"\x0d\x0a\x0d\x0a";'
            'content:"blah-blah"; );',
        }
        path = get_pcap_file_path(KNOWN_PCAP_ID, path=self.pcap_base)
        mock_pcap_path.side_effect = [path]
        response = self.client.post(
            "/flowsynth/pcap/compile_fs",
            data=urlencode(post_args),
            content_type="application/x-www-form-urlencoded",
        )
        self.assertEqual(200, response.status_code, "Flowsynth command worked")
        self.assertIn(b"Success", response.data)
        self.assertIn(b"Click Here to Download PCAP", response.data)
Ensure we can call the pcap/compile_fs endpoint.
tests/test_flowsynth.py