Move SWF Domain related tests with other models tests
This commit is contained in:
parent
036ab194ba
commit
33c478bc62
2 changed files with 22 additions and 15 deletions
|
|
@ -3,7 +3,6 @@ from nose.tools import assert_raises
|
|||
from sure import expect
|
||||
|
||||
from moto import mock_swf
|
||||
from moto.swf.models import Domain
|
||||
from moto.swf.exceptions import (
|
||||
SWFUnknownResourceFault,
|
||||
SWFDomainAlreadyExistsFault,
|
||||
|
|
@ -12,15 +11,6 @@ from moto.swf.exceptions import (
|
|||
)
|
||||
|
||||
|
||||
# Models
|
||||
def test_dict_representation():
|
||||
domain = Domain("foo", "52")
|
||||
domain.to_dict().should.equal({"name":"foo", "status":"REGISTERED"})
|
||||
|
||||
domain.description = "foo bar"
|
||||
domain.to_dict()["description"].should.equal("foo bar")
|
||||
|
||||
|
||||
# RegisterDomain endpoint
|
||||
@mock_swf
|
||||
def test_register_domain():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue