| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2011 Google Inc. All Rights Reserved. | 2 # Copyright 2011 Google Inc. All Rights Reserved. |
| 3 # | 3 # |
| 4 # Licensed under the Apache License, Version 2.0 (the "License"); | 4 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 # you may not use this file except in compliance with the License. | 5 # you may not use this file except in compliance with the License. |
| 6 # You may obtain a copy of the License at | 6 # You may obtain a copy of the License at |
| 7 # | 7 # |
| 8 # http://www.apache.org/licenses/LICENSE-2.0 | 8 # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 # | 9 # |
| 10 # Unless required by applicable law or agreed to in writing, software | 10 # Unless required by applicable law or agreed to in writing, software |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 | 475 |
| 476 def test_update_date_bad_date_header(self): | 476 def test_update_date_bad_date_header(self): |
| 477 self.response.set_header('date', 'garbage date') | 477 self.response.set_header('date', 'garbage date') |
| 478 self.assertEqual( | 478 self.assertEqual( |
| 479 self.response.update_date(self.PAST_DATE_B, now=self.NOW_SECONDS), | 479 self.response.update_date(self.PAST_DATE_B, now=self.NOW_SECONDS), |
| 480 self.PAST_DATE_B) | 480 self.PAST_DATE_B) |
| 481 | 481 |
| 482 | 482 |
| 483 if __name__ == '__main__': | 483 if __name__ == '__main__': |
| 484 unittest.main() | 484 unittest.main() |
| OLD | NEW |