Add SWF endpoint RecordActivityTaskHeartbeat

This commit is contained in:
Jean-Baptiste Barth 2015-11-02 10:26:40 +01:00
commit f576f3765c
9 changed files with 94 additions and 12 deletions

View file

@ -1,5 +1,11 @@
from freezegun import freeze_time
from sure import expect
from moto.swf.utils import decapitalize
from moto.swf.utils import (
decapitalize,
now_timestamp,
)
def test_decapitalize():
cases = {
@ -9,3 +15,7 @@ def test_decapitalize():
}
for before, after in cases.iteritems():
decapitalize(before).should.equal(after)
@freeze_time("2015-01-01 12:00:00")
def test_now_timestamp():
now_timestamp().should.equal(1420110000.0)