changeset 359:07d01606da84

add a macro for mozbase tests
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 02 Jul 2013 09:48:45 -0700
parents 0e270a448610
children d0da972238d0
files .emacs
diffstat 1 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.emacs	Mon Jul 01 21:41:23 2013 -0700
+++ b/.emacs	Tue Jul 02 09:48:45 2013 -0700
@@ -164,6 +164,24 @@
     main()")
 ;; TODO: take directly from MakeItSo
 
+(fset 'mozbase-test "#!/usr/bin/env python
+
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
+
+import os
+import unittest
+
+here = os.path.dirname(os.path.abspath(__file__))
+
+class Test____(unittest.TestCase):
+
+if __name__ == '__main__':
+    unittest.main()
+")
+
+
 ;;; TODO
 ; - needless to say, zeitgeist integration
-; - http://pedrokroger.net/2010/07/configuring-emacs-as-a-python-ide-2/
\ No newline at end of file
+; - http://pedrokroger.net/2010/07/configuring-emacs-as-a-python-ide-2/