Exemple #1
0
    def test_to_dict(self):
        from ddbmock.database.key import Key

        k = Key(KEY_NAME, KEY_TYPE)

        expected = {"AttributeName": KEY_NAME, "AttributeType": KEY_TYPE}

        self.assertEqual(expected, k.to_dict())
Exemple #2
0
    def test_to_dict(self):
        from ddbmock.database.key import Key

        k = Key(KEY_NAME, KEY_TYPE)

        expected = {
            "AttributeName": KEY_NAME,
            "AttributeType": KEY_TYPE,
        }

        self.assertEqual(expected, k.to_dict())