def test_replace_host_key_no_known_hosts(self):
        """Testing FileSSHStorage.replace_host_key with no known hosts file"""
        storage = FileSSHStorage()
        storage.replace_host_key('host1', self.key1, self.key2)

        filename = storage.get_host_keys_filename()
        with open(filename, 'r') as fp:
            lines = fp.readlines()

        self.assertEqual(len(lines), 1)
        self.assertEqual(lines[0], self.key2_b64 % 'host1 ssh-dss %s\n')
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/ssh/tests.py/FileSSHStorageTests.test_replace_host_key_no_known_hosts/swapped operands of `%`