def test_url_encoding(self): from staticcomp.compressor import JsPayload sig = JsPayload.signature(self.fake_files, self.fake_group, self.mod_time) b64_url = JsPayload.url_encode(self.fake_files, self.mod_time) self.assertEquals(b64_url, 'anMvYS5qcyxqcy9iLmpzLDEyOTY5NDk3MjU=')
def test_signature(self): from staticcomp.compressor import JsPayload sig = JsPayload.signature(self.fake_files, self.fake_group, self.mod_time) self.assertEqual(sig, 'fceba194a9faf706f8abe35ba5a10d746be0244e09681da0abcb5407e1ca44e9')