Skip to content
Snippets Groups Projects
Verified Commit 906cf89a authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autopep8'ed new files

parent a66f9fe0
No related branches found
No related tags found
1 merge request!3F fsm
from lxml import etree from lxml import etree
class State: class State:
"""State """State
......
...@@ -3,6 +3,7 @@ from caosdb import State ...@@ -3,6 +3,7 @@ from caosdb import State
from caosdb.common.models import parse_xml from caosdb.common.models import parse_xml
from lxml import etree from lxml import etree
def test_state_xml(): def test_state_xml():
state = State(model="model1", name="state1") state = State(model="model1", name="state1")
xml = etree.tostring(state.to_xml()) xml = etree.tostring(state.to_xml())
...@@ -14,6 +15,7 @@ def test_state_xml(): ...@@ -14,6 +15,7 @@ def test_state_xml():
assert xml == etree.tostring(state.to_xml()) assert xml == etree.tostring(state.to_xml())
def test_entity_xml(): def test_entity_xml():
r = db.Record() r = db.Record()
assert r.state is None assert r.state is None
...@@ -24,4 +26,3 @@ def test_entity_xml(): ...@@ -24,4 +26,3 @@ def test_entity_xml():
r = parse_xml(xml) r = parse_xml(xml)
assert r.state == State(model="model1", name="state1") assert r.state == State(model="model1", name="state1")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment