
import subprocess
import unittest


class JavaScriptTests(unittest.TestCase):

    def test_with_karma(self):
        subprocess.call([
            'third_party/node-0.10.1/bin/karma', 'start', 'oppia/tests/karma.conf.js'])


import subprocess
import unittest


class JavaScriptTests(unittest.TestCase):

    def test_with_karma(self):
    	return_code = subprocess.call([
            'third_party/node-0.10.1/bin/karma', 'start',
            'oppia/tests/karma.conf.js'])
    	self.assertEqual(return_code, 0)

Make failing Karma tests actually count as failures.
Make failing Karma tests actually count as failures.

  
  import subprocess
  import unittest
  
  
  class JavaScriptTests(unittest.TestCase):
  
      def test_with_karma(self):
-         subprocess.call([
+     	return_code = subprocess.call([
-             'third_party/node-0.10.1/bin/karma', 'start', 'oppia/tests/karma.conf.js'])
+             'third_party/node-0.10.1/bin/karma', 'start',
+             'oppia/tests/karma.conf.js'])
+     	self.assertEqual(return_code, 0)
  
Make failing Karma tests actually count as failures.
## Code Before:

import subprocess
import unittest


class JavaScriptTests(unittest.TestCase):

    def test_with_karma(self):
        subprocess.call([
            'third_party/node-0.10.1/bin/karma', 'start', 'oppia/tests/karma.conf.js'])

## Instruction:
Make failing Karma tests actually count as failures.
## Code After:

import subprocess
import unittest


class JavaScriptTests(unittest.TestCase):

    def test_with_karma(self):
    	return_code = subprocess.call([
            'third_party/node-0.10.1/bin/karma', 'start',
            'oppia/tests/karma.conf.js'])
    	self.assertEqual(return_code, 0)
