Custom testcases for managerial command

Hi! all I have created a custom managerial command, and while adding a test case I am facing an issue.
I have a test class that inherits Testcase from django.test in which I have two different methods. Now only one of the test cases seems to be passing and the weird thing about this is that the test case that is being named to test_command is passing.

Scenario 1:

class A():
  def test_command() - pass
  def random() - fails

Scenario 2:

class A():
   def random() - fails
   def test_command() - pass

Any help is appreciated.

I think to properly diagnose this, we would need to see the actual code involved.

Side note: When posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code, then another line of ```. This forces the forum software to keep your code properly formatted. (I’ve taken the liberty of modifying your original post for this.)