def test_when_type_and_database_are_unchanged_then_no_change(self):
        provider = FileFormatProvider(self.get_mock_provider(), Mock())
        result = provider.diff("test_file_format", {
            "type": "CSV",
            "database": "database_name"
        }, {
            "type": "CSV",
            "database": "database_name"
        })

        self.assertFalse(result.changes)
        self.assertSetEqual(set(result.replaces), set())
    def test_when_database_changed_then_needs_change(self):
        provider = FileFormatProvider(self.get_mock_provider(), Mock())
        result = provider.diff("test_file_format", {
            "type": "CSV",
            "database": "database_name"
        }, {
            "type": "CSV",
            "database": "database_name_changed"
        })

        self.assertTrue(result.changes)
        self.assertSetEqual(set(result.replaces), {"database"})