aboutsummaryrefslogtreecommitdiffstats
path: root/test_strings.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-01-18 10:27:19 +0100
committerMatěj Cepl <mcepl@redhat.com>2012-01-18 10:27:19 +0100
commit4a196e71d4aa325b93749b015a757109de006db5 (patch)
tree3a820048abbfcb6fe6a36c6635bea04e33385d64 /test_strings.py
parentddeec222e02608798e3f9bc6a806343da7777332 (diff)
downloadjson_diff-4a196e71d4aa325b93749b015a757109de006db5.tar.gz
Plenty of setup.py work.1.2.7
* Yet another (hopefully the last) fix of the development website. We are on fedorahosted.org now. * Move tests to test/ module * Clean up setup.py (when using defaults, install doesn’t install tests, which I like) * Add new setup.py command test to run the test suite.
Diffstat (limited to 'test_strings.py')
-rw-r--r--test_strings.py231
1 files changed, 0 insertions, 231 deletions
diff --git a/test_strings.py b/test_strings.py
deleted file mode 100644
index af86ab7..0000000
--- a/test_strings.py
+++ /dev/null
@@ -1,231 +0,0 @@
-# coding: utf-8
-
-NO_JSON_OLD = u"""
-THIS IS NOT A JSON STRING
-"""
-
-NO_JSON_NEW = u"""
-AND THIS NEITHER
-"""
-
-SIMPLE_OLD = u"""
-{
- "a": 1,
- "b": true,
- "c": "Janošek"
-}
-"""
-
-SIMPLE_NEW = u"""
-{
- "b": false,
- "c": "Maruška",
- "d": "přidáno"
-}
-"""
-
-SIMPLE_DIFF = u"""
-{
- "_append": {
- "d": "přidáno"
- },
- "_remove": {
- "a": 1
- },
- "_update": {
- "c": "Maruška",
- "b": false
- }
-}
-"""
-
-SIMPLE_DIFF_HTML = u"""
-<!DOCTYPE html>
-<html lang='en'>
-<meta charset="utf-8" />
-<title>json_diff result</title>
-<style>
-td {
-text-align: center;
-}
-.append_class {
-color: green;
-}
-.remove_class {
-color: red;
-}
-.update_class {
-color: navy;
-}
-</style>
-<body>
-<h1>json_diff result</h1>
-<table>
-<tr>
-<td class='remove_class'>a = 1</td>
-</tr><tr>
-<td class='update_class'>c = Maruška</td>
-</tr><tr>
-<td class='update_class'>b = False</td>
-</tr><tr>
-<td class='append_class'>d = přidáno</td>
-</tr>
-</table>
-</body>
-</html>
-"""
-
-SIMPLE_ARRAY_OLD = u"""
-{
- "a": [ 1 ]
-}
-"""
-
-SIMPLE_ARRAY_NEW = u"""
-{
- "a": [ 1, 2 ]
-}
-"""
-
-SIMPLE_ARRAY_DIFF = u"""
-{
- "_update": {
- "a": {
- "_append": {
- "1": 2
- }
- }
- }
-}
-"""
-
-NESTED_OLD = u"""
-{
- "a": 1,
- "b": 2,
- "ignore": {
- "else": true
- },
- "child": {
- "nome": "Janošek"
- }
-}
-"""
-
-NESTED_NEW = u"""
-{
- "a": 2,
- "c": 3,
- "child": {
- "nome": "Maruška"
- }
-}
-"""
-
-NESTED_DIFF = u"""
-{
- "_append": {
- "c": 3
- },
- "_remove": {
- "b": 2,
- "ignore": {
- "else": true
- }
- },
- "_update": {
- "a": 2,
- "child": {
- "_update": {
- "nome": "Maruška"
- }
- }
- }
-}
-"""
-
-NESTED_DIFF_EXCL = u"""
-{
- "_append": {
- "c": 3
- },
- "_remove": {
- "b": 2,
- "ignore": {
- "else": true
- }
- },
- "_update": {
- "a": 2
- }
-}
-"""
-
-NESTED_DIFF_INCL = u"""
-{
- "_update": {
- "child": {
- "_update": {
- "nome": "Maruška"
- }
- }
- }
-}
-"""
-
-NESTED_DIFF_IGNORING = u"""
-{
- "_remove": {
- "b": 2,
- "ignore": {
- "else": true
- }
- },
- "_update": {
- "a": 2,
- "child": {
- "_update": {
- "nome": "Maruška"
- }
- }
- }
-}
-"""
-
-ARRAY_OLD = u"""
-{
- "a": 1,
- "b": 2,
- "children": [
- "Pepíček", "Anička", "Maruška"
- ]
-}
-"""
-
-ARRAY_NEW = u"""
-{
- "a": 1,
- "children": [
- "Pepíček", "Tonička", "Maruška"
- ],
- "c": 3
-}
-"""
-
-ARRAY_DIFF = u"""
- {
- "_append": {
- "c": 3
- },
- "_remove": {
- "b": 2
- },
- "_update": {
- "children": {
- "_update": {
- "1": "Tonička"
- }
- }
- }
-}
-"""