Skip to content

Commit

Permalink
Using more generic name for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed May 28, 2016
1 parent c8befa3 commit e3f7ede
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions testing/vcs/test_vcs_dump_json.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"G1d": {
"Charles.Doutriaux": {
"vcs_instance": {
"colormap": null,
"datawc_calendar": 135441,
"datawc_timeunits": "days since 2000",
Expand Down Expand Up @@ -29,7 +29,7 @@
}
},
"Gfb": {
"Charles.Doutriaux": {
"vcs_instance": {
"boxfill_type": "linear",
"color_1": 16,
"color_2": 239,
Expand Down Expand Up @@ -70,7 +70,7 @@
}
},
"Gfi": {
"Charles.Doutriaux": {
"vcs_instance": {
"colormap": null,
"datawc_calendar": 135441,
"datawc_timeunits": "days since 2000",
Expand Down Expand Up @@ -110,7 +110,7 @@
}
},
"Gfm": {
"Charles.Doutriaux": {
"vcs_instance": {
"colormap": null,
"datawc_calendar": 135441,
"datawc_timeunits": "days since 2000",
Expand Down Expand Up @@ -153,7 +153,7 @@
}
},
"Gi": {
"Charles.Doutriaux": {
"vcs_instance": {
"angle": [
35.0
],
Expand Down Expand Up @@ -211,7 +211,7 @@
}
},
"P": {
"Charles.Doutriaux": {
"vcs_instance": {
"box1": {
"line": "default",
"priority": 1,
Expand Down Expand Up @@ -579,7 +579,7 @@
}
},
"Proj": {
"Charles.Doutriaux": {
"vcs_instance": {
"parameters": [
1e+20,
1e+20,
Expand All @@ -601,7 +601,7 @@
}
},
"Tf": {
"Charles.Doutriaux": {
"vcs_instance": {
"color": [
1
],
Expand Down Expand Up @@ -632,7 +632,7 @@
}
},
"Tl": {
"Charles.Doutriaux": {
"vcs_instance": {
"color": [
1
],
Expand Down Expand Up @@ -662,7 +662,7 @@
}
},
"Tm": {
"Charles.Doutriaux": {
"vcs_instance": {
"color": [
1
],
Expand Down Expand Up @@ -691,7 +691,7 @@
}
},
"To": {
"Charles.Doutriaux": {
"vcs_instance": {
"angle": 0,
"halign": 0,
"height": 14,
Expand All @@ -700,7 +700,7 @@
}
},
"Tt": {
"Charles.Doutriaux": {
"vcs_instance": {
"backgroundcolor": 0,
"backgroundopacity": 0,
"color": 1,
Expand Down
26 changes: 13 additions & 13 deletions testing/vcs/test_vcs_dump_json.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@

import filecmp
import vcs,numpy,os,sys
src=sys.argv[1]
src = sys.argv[1]
if os.path.exists("test_vcs_dump_json.json"):
os.remove("test_vcs_dump_json.json")

b = vcs.createboxfill("Charles.Doutriaux")
b = vcs.createboxfill("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createisofill("Charles.Doutriaux")
b = vcs.createisofill("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createisoline("Charles.Doutriaux")
b = vcs.createisoline("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createmeshfill("Charles.Doutriaux")
b = vcs.createmeshfill("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.create1d("Charles.Doutriaux")
b = vcs.create1d("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createfillarea("Charles.Doutriaux")
b = vcs.createfillarea("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createtext("Charles.Doutriaux")
b = vcs.createtext("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createline("Charles.Doutriaux")
b = vcs.createline("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createmarker("Charles.Doutriaux")
b = vcs.createmarker("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createtemplate("Charles.Doutriaux")
b = vcs.createtemplate("vcs_instance")
b.script("test_vcs_dump_json","a")
b = vcs.createprojection("Charles.Doutriaux")
b = vcs.createprojection("vcs_instance")
b.script("test_vcs_dump_json","a")

assert(filecmp.cmp("test_vcs_dump_json.json",src))
assert(filecmp.cmp("test_vcs_dump_json.json", src))


0 comments on commit e3f7ede

Please sign in to comment.