from aws_lambda.helpers import LambdaContext
import time
import unittest

class TestLambdaContext(unittest.TestCase):

	def test_get_remaining_time_in_millis(self):
		context = LambdaContext('function_name',2000)
		time.sleep(.5)
		self.assertTrue(context.get_remaining_time_in_millis() < 2000)


if __name__ == '__main__':
	unittest.main()
from aws_lambda.helpers import LambdaContext
import time
import unittest

class TestLambdaContext(unittest.TestCase):

	def test_get_remaining_time_in_millis(self):
		context = LambdaContext('function_name', 2000)
		time.sleep(.5)
		self.assertTrue(context.get_remaining_time_in_millis() < 2000000)


if __name__ == '__main__':
	unittest.main()
Fix second/millisecond conversion issue in test case
Fix second/millisecond conversion issue in test case

The test for the `get_remaining_time_in_millis` method was
evaluating the output against a count in seconds, not milliseconds.
This corrects the issue to allow the test suite to pass
